package com.uni.service;

import com.uni.dao.ProviderMapper;
import com.uni.pojo.Product;
import com.uni.pojo.Provider;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


public interface ProviderService {
    List<Provider> getAll();
    Provider getByProductId(Long id);

    Provider getByProviderId(Long prodId);

    Provider autoModifyById(Provider provider);

    List<Provider> getBySome(Map<String, String> paramMap);

    int addProvider(Provider provider);

    int removeProviderByIds(@Param("ids") List<Long> ids);
}
